<div bsModal #createOrEditModal="bs-modal" (onShown)="onShown()" aria-labelledby="createOrEditModal" class="modal fade"
    tabindex="-1" role="dialog" aria-hidden="true" [config]="{backdrop: 'static'}">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <form *ngIf="active" #ObjForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <!-- <span>{{l("handle")}}{{l('messageRecord')}}</span> ：{{objItem?.customer}} -->
                        <span *ngIf="objItem?.id">{{l("Edit")}}{{l("Tenant")}}:{{objItem?.id +' | '+ objName}}</span>
                        <span *ngIf="!objItem?.id">{{l("Create")}}{{l("Tenant")}}</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" aria-label="Close">
                        <i aria-hidden="true" class="ki ki-close"></i>
                      </button>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="form-group col-6">
                            <label>{{l("tenancyName")}}</label>
                            <input disabled class="form-control" type="text" name="tenancyName" [(ngModel)]="objItem.tenancyName">
                        </div>
                        <div class="form-group col-6">
                          <label>{{l("currentDevicesCount")}}</label>
                          <input disabled class="form-control" type="text" name="currentDevicesCount" [(ngModel)]="objItem.currentDevicesCount">
                        </div>
                        <div class="form-group col-12">
                            <label>{{l("limitDevicesCount")}}</label>
                            <input class="form-control" type="text" name="limitDevicesCount" [(ngModel)]="objItem.limitDevicesCount">
                        </div>

                    </div>
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-primary"
                        (click)="close()">{{l("Cancel")}}</button>
                    <button type="submit" class="btn btn-primary blue" [disabled]="!ObjForm.form.valid"
                        [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
                        <span>{{l("Save")}}</span></button>
                </div>
            </form>
        </div>
    </div>
</div>